package com.xyoto.takeawayBusiness.mapper;

import com.xyoto.takeawayBusiness.vo.BillSumVO;
import com.xyoto.takeawayBusiness.vo.BillVO;
import org.apache.ibatis.annotations.Mapper;

import java.sql.Date;
import java.util.List;

/**
 * @Description
 * @Author: TingFeng
 * @CreateTime: 2022/5/4  16:43
 */
@Mapper
public interface BillMapper {
    /**
     * 获取订单列表
     * @param shopId
     * @return
     */
    List<BillVO> getBills(Integer shopId, Date end, Date start,short completed);

    /**
     * 查询总额和数量
     * @param shopId
     * @param end
     * @param start
     * @return
     */
    BillSumVO getSumCount(Integer shopId, Date end, Date start,short completed);
}
